<!--usereditSuccess.php 
Colin Hom
12/29/08
-->
<?php slot('profileNav', 'active') ?>
<div id="wrapper" class="profile">
	<?php include_partial('global/systemMessages', array('form' => $form)) ?>
	<form class="settings" style="padding-top: 0px;" method="post" action="<?php echo url_for('user_profiles/update')?>" enctype="multipart/form-data">
		<div id="content">
	
			<div id="main">
				<div class="profile-heading">
					<p class="join-date">Member since <?php echo $user->getCreatedAt('%B %Y')?></p>
					<h1><?php echo $user->getFullName() ?></h1>
					<p class="term"><?php echo ucfirst($user->getStanding()) ?></p>
					<ul>
						<li class="envelope">Edit Your User Information</li><br>
						<?php if($prof): ?>
							<li class="envelope"><?= link_to("Professor Course Administration","professors/edit?id=".$prof->getId()) ?></li>
						<?php endif; ?>
					</ul>
				</div>
				
				<div id="center-col">
					<h4><span>Contact Information</span></h4>
					<fieldset>
						<label>Primary Email Address</label>
						<?php echo $form['user']['email']->render(array('class' => 'input-text')) ?>
						<label>Receive Email Updates</label>
						<?= $form['user']['receive_email_updates']->render(array('class' => 'receive_email_updates')); ?>
						
					</fieldset>
					<h4><span>Localization Settings</span></h4>
					<fieldset>
					<!--	<label>Timezone</label>
						<?php echo $form['user']['timezone']->render(array('class' => 'input-text')) ?>   -->
						<label>Language</label>
						<?php echo $form['user']['language']->render(array('class' => 'language')) ?>			
						<label>Timezone</label>
						<?php echo $form['user']['timezone']->render(array('class' => 'timezone')) ?>			
					</fieldset>
					<h4><span>Password</span></h4>
					<fieldset>
						<label>Old Password</label>
						<?php echo $form['user']['password']->render(array('class' => 'password','name' => "user_profile[old_pw]")) /*send old password via post */?>
						<br><br>
						<br><br>
						<br><br>
						<div align='center'>
						<label>New Password</label>
						<?php echo $form['user']['password']->render(array('class' => 'password')) ?>
						<label>Confirm New Password</label>	
						<?php echo $form['user']['confirm_password']->render(array('class' => 'password')) ?>		
						</div>		
					</fieldset>
					<fieldset class="controls">
						<input type="submit" value="Save Changes" />
						<?php echo link_to('Cancel', 'user_profiles/show')?>
					</fieldset>				
				</div>

			</div>
		</div>
	</form>
	
</div>